# 导入flask类
from logging import debug
from flask import Flask
from flask_cors import CORS

# 初始Flask
app = Flask(__name__)

# 解决中文乱码
# app.config['JSON_AS_ASCII'] = Flask

# 跨域配置

# 全局配置库跨域
cors = CORS(app)

# 调用实例化类
if __name__=='__main__':
    app.run(debug=True,host='0.0.0.0',port=5000)